/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package verins.beans;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author hectdx
 */
@Entity
@Table(name = "imgpadron", schema = "verinscribe")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Imgpadron.findAll", query = "SELECT i FROM Imgpadron i"),
    @NamedQuery(name = "Imgpadron.findByIdimgpadron", query = "SELECT i FROM Imgpadron i WHERE i.idimgpadron = :idimgpadron")})
public class Imgpadron implements Serializable {
    @Basic(optional = false)
    @Column(name = "idproceso", nullable = false)
    private int idproceso;
    @Lob
    @Column(name = "padron")
    private byte[] padron;
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idimgpadron", nullable = false)
    private Integer idimgpadron;

    public Imgpadron() {
    }

    public Imgpadron(Integer idimgpadron) {
        this.idimgpadron = idimgpadron;
    }

    public Integer getIdimgpadron() {
        return idimgpadron;
    }

    public void setIdimgpadron(Integer idimgpadron) {
        this.idimgpadron = idimgpadron;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idimgpadron != null ? idimgpadron.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Imgpadron)) {
            return false;
        }
        Imgpadron other = (Imgpadron) object;
        if ((this.idimgpadron == null && other.idimgpadron != null) || (this.idimgpadron != null && !this.idimgpadron.equals(other.idimgpadron))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "verins.beans.Imgpadron[ idimgpadron=" + idimgpadron + " ]";
    }

    public int getIdproceso() {
        return idproceso;
    }

    public void setIdproceso(int idproceso) {
        this.idproceso = idproceso;
    }

    public byte[] getPadron() {
        return padron;
    }

    public void setPadron(byte[] padron) {
        this.padron = padron;
    }
    
}
